<%-- 
    Document   : chackFile
    Created on : 2015-4-25, 22:26:35
    Author     : cjh(358319110@qq.com)
--%>

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE HTML>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <link rel="stylesheet" type="text/css" href="front/css/home-page.css"/>
        <link rel="stylesheet" type="text/css" href="front/css/fileCenter.css"/>
        <link rel="stylesheet" type="text/css" href="front/css/jquery.mCustomScrollbar.css"/>
        <script src="front/js/jquery-1.11.2.js"></script>
        <script src="front/js/jquery.easing.1.3.js"></script>
        <script src="front/js/Velocity.js"></script>
        <script src="front/js/jquery.mCustomScrollbar.concat.min.js"></script>
        <script src="front/js/home-page.js"></script>
        <script src="front/js/fileCenter.js"></script>
        <title>查找文件</title>
    </head>
    <body class="all-page fileCenter">
        <jsp:include page="head.jsp"></jsp:include>


            <div class="fileDisplay">
                <div class="title">查找文件
                    <form>
                        <input id="search" name="search" type="text" placeholder="查找（支持空格多关键字查找）"/>
                    </form>
                </div>
                <div class="content">
                    <table>
                        <thead>
                            <tr><th>文件名</th><th>所属项目</th><th>上传者</th><th>上传时间</th><th>操作</th></tr>
                        </thead>
                        <tbody>
                        <c:forEach var="proFile" items="${adminProFileList}">
                            <tr>
                                <td>${proFile.name}</td>
                                <td>${proFile.project.name}</td>
                                <td>${proFile.userName}</td>
                                <td><fmt:formatDate value="${proFile.uploadDate}" type="date" pattern="yyyy-MM"/></td>
                                <td>
                                    <form action="adminDownLoadFile">
                                        <input type="hidden" name="proFileId" value="${proFile.id}"/>
                                    </form>
                                </td>
                                <td>
                                     <form action="adminDownLoadFile" method="POST">
                                        <input type="hidden" name="proFileId" value="${proFile.id}"/>
                                        <input type="submit" value="点我下载"/>
                                    </div>
                                    </form>
                                </td>
                            </tr>
                        </c:forEach>
                    </tbody>
                </table>	
            </div>
        </div>

        <div class="confirm-download">
            <div class="download">
                <p class="title">下载</p>
                <form action="adminDownLoadFile" method="POST">
                   
                    <div class="adjust">
                    <p class="tip">确定下载文件吗？</p>
                    <input class="forProFileId" type="hidden" name="proFileId" value=""/>
                    <input type="submit" value="确认"/>
                    <input type="button" value="取消"/>	
                </div>
                </form>
            </div>
        </div>
    </body>
</html>
